﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <div id="d2"></div>
</body>
</html>
<script>
    var worker = new SharedWorker('shareWork.js');
    worker.port.addEventListener('message', function (e) {
        document.getElementById("d2").innerHTML = e.data;
    }, false);
    worker.port.start();
    worker.port.postMessage('url:port2.aspx');
</script>